package utl.mofen.dbHandler;

import com.google.gson.JsonObject;

import utl.mofen.intf.IDBOperator;
import utl.mofen.jsonStreamHandler.HandlerSession;
import utl.mofen.objects.JSonStream;
import utl.mofen.objects.KeyStream;
import utl.mofen.script.SQLParser;

public interface IDBHandler {
	
	//数据库操�?
	void setDBOperator(IDBOperator __dbOpera);
	
	//系统数据库操作接口
	void setSysOperator(IDBOperator __dbOpera);
	
	//全局跟踪, 配置 
	void setResultJSonStream(JSonStream __resultJsonStream);
	
	//当前Handler配置 
	void setConfig(JsonObject __config);
	
	//是否进行跟踪回写
	void setIsTrace(boolean __isTrace);
	
	//脚本解析
	void setSQLParser(SQLParser __sqlParser);
	
	//返回的数�?
	void setResultKeyStream(KeyStream __resultKeyStream);	

	//传入数据
	void setDataKeyStream(KeyStream __dataKeyStream);	
	
	//Session
	void setSession(HandlerSession session);

	
	//执行
	void doAction() throws Exception;
	
}
